const nodata = require('../tw-lib-base/no-data/props')
module.exports = {
  data: {
    type: Array,
    default () {
      return [
        {
          id: '1',
          listName: '最近访问',
          appList: [
            {
              id: 'app1',
              name: '统一门户平台',
              url: 'http://demo.teewon.com',
              img: '',
              inner: '我是一大排介绍'
            },
            {
              id: 'app2',
              name: '统一门户平台2',
              url: 'http://demo.222teewon.com',
              img: '',
              inner: '我是一大排介绍2'
            },
            {
              id: 'app2',
              name: '统一门户平台2',
              url: 'http://demo.222teewon.com',
              img: '',
              inner: '我是一大排介绍3'
            },
            {
              id: 'app2',
              name: '统一门户平台2',
              url: 'http://demo.222teewon.com',
              img: '',
              inner: '我是一大排介绍4'
            }
          ]
        },
        {
          id: '2',
          listName: '推荐应用',
          appList: [
            {
              id: 'app3',
              name: '统一门户平台3',
              url: 'http://demo.teewon.com33333',
              img: '',
              inner: '我是一大排介222222'
            },
            {
              id: 'app6',
              name: '统一门户平台2',
              url: 'http://demo.222teewon.com',
              img: '',
              inner: '我是一大排介绍4'
            },
            {
              id: 'app6',
              name: '统一门户平台66',
              url: 'http://demo.222teewon.com',
              img: '',
              inner: '我是一大排介绍4'
            }
          ]
        }
      ]
    },
    name: '应用列表',
    filedType: 'api'
  },

  appType: {
    type: String,
    default: '2',
    name: '应用列表类型',
    nameTip: 'eco应用不需要手动配置接口，接口已封装在组件中',
    filedType: 'select',
    options: [
      {
        name: 'eco应用',
        value: '1'
      },
      {
        name: '外部应用',
        value: '2'
      }
    ],
    multiple: false
  },

  columns: {
    type: String,
    default: '2',
    name: '列数',
    nameTip: '每行显示多少个应用',
    filedType: 'string'
  },

  showCounts: {
    type: String,
    default: '4',
    name: '显示多少个',
    nameTip: '不配置显示全部',
    filedType: 'string'
  },

  groupListSpacing: {
    type: String,
    default: '15px',
    name: '分类应用上下间距',
    filedType: 'string'
  },

  groupTitleSize: {
    type: String,
    default: '26px',
    name: '应用分类标题字体大小',
    filedType: 'string'
  },

  itemSpacing: {
    type: String,
    default: '15px',
    name: '应用间距',
    filedType: 'string'
  },

  borderColor: {
    type: String,
    default: '',
    name: '边框颜色',
    filedType: 'color'
  },

  borderRadius: {
    type: String,
    default: '5px',
    name: '边框圆角',
    filedType: 'string'
  },

  iconSize: {
    type: String,
    default: '70px',
    name: '图标大小',
    filedType: 'string'
  },

  nameFontSize: {
    type: String,
    default: '18px',
    name: '应用名称字号',
    filedType: 'string'
  },

  nameColor: {
    type: String,
    default: '#333',
    name: '应用名称文本颜色',
    filedType: 'color'
  },

  linkFontSize: {
    type: String,
    default: '12px',
    name: '详情链接字号',
    filedType: 'string'
  },

  linkColor: {
    type: String,
    default: '#666',
    name: '详情文本颜色',
    filedType: 'color'
  },

  hoverColor: {
    type: String,
    default: '#26a8ff',
    name: '文本滑过颜色',
    filedType: 'color'
  },

  appImages: {
    type: Array,
    default () {
      return []
    },
    name: '应用图标',
    nameTip: '当手动指定应用列表时，请在此处上传图片，变复制上传后的图片路径到静态数据中的img属性',
    filedType: 'file',
    limit: 100,
    maxSize: 1024
  },
  borderShadow: {
    type: Boolean,
    default: false,
    name: '边框阴影',
    filedType: 'switch'
  },
  shadowSetup: {
    type: String,
    default: '0 0px 10px 0 rgba(201,215,224,0.5)',
    name: '阴影设置',
    filedType: 'string',
    vif: {
      key: 'borderShadow',
      value: true
    }
  },
  shadowSetupHover: {
    type: String,
    default: '0 0px 20px 0 rgba(201,215,224,1)',
    name: '移动到应用时阴影设置',
    filedType: 'string',
    vif: {
      key: 'borderShadow',
      value: true
    }
  },
  paddingTop: {
    type: String,
    default: '20px',
    name: '内边距(上)',
    filedType: 'string'
  },

  paddingBottom: {
    type: String,
    default: '20px',
    name: '内边距(下)',
    filedType: 'string'
  },

  paddingLeft: {
    type: String,
    default: '30px',
    name: '内边距(左)',
    filedType: 'string'
  },

  paddingRight: {
    type: String,
    default: '30px',
    name: '内边距(右)',
    filedType: 'string'
  },

  dialogShow: {
    type: Boolean,
    default: false,
    name: '弹窗显示',
    nameTip: '控制点击应用时是否显示弹窗信息,关闭时默认直接跳转应用',
    filedType: 'switch'
  },

  appDialogImg: {
    type: Array,
    default () {
      return []
    },
    name: '弹窗顶部背景图片栏',
    filedType: 'file',
    limit: 1,
    maxSize: 1024
  },

  dialogTitleText: {
    type: String,
    default: '即将离开',
    name: '弹窗标题文字',
    filedType: 'string'
  },

  dialogTitleColor: {
    type: String,
    default: '#333',
    name: '弹窗顶部标题颜色',
    filedType: 'color'
  },

  dialogTopicColor: {
    type: String,
    default: '#409EFF',
    name: '弹窗主题颜色',
    filedType: 'color'
  },

  textInnerColor: {
    type: String,
    default: '#666',
    name: '联系人文字颜色',
    filedType: 'color'
  },

  dialogTopicColorHover: {
    type: String,
    default: '#3488de',
    name: '弹窗主题颜色选中/移动到',
    filedType: 'color'
  },

  titleBgColor: {
    type: String,
    default: '#f1ebeb',
    name: '分类标题背景模块色',
    filedType: 'color'
  },

  titleXianColor: {
    type: String,
    default: '#eed5d9',
    name: '分类标题背景线颜色',
    filedType: 'color'
  },
  ...nodata
}

// Helvetica Neue,,宋体,Arial,Helvetica,sans-serif
